<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI故事学习模式 - AI单词</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f9fafb;
            height: 100vh;
            margin: 0;
            padding: 0;
        }
        .app-container {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .nav-bar {
            height: 50px;
            background-color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }
        .tab-bar {
            height: 70px;
            background-color: white;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            width: 100%;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        }
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #6b7280;
            font-size: 10px;
        }
        .tab-item.active {
            color: #6366f1;
        }
        .tab-icon {
            font-size: 22px;
            margin-bottom: 4px;
        }
        .content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            padding-bottom: 90px;
        }
        .story-selection {
            margin-bottom: 25px;
        }
        .story-header {
            font-weight: 600;
            color: #374151;
            margin-bottom: 15px;
            font-size: 18px;
        }
        .story-categories {
            display: flex;
            overflow-x: auto;
            padding-bottom: 15px;
            scroll-snap-type: x mandatory;
            gap: 10px;
        }
        .story-category {
            flex: 0 0 auto;
            padding: 8px 16px;
            background-color: white;
            border-radius: 20px;
            font-size: 14px;
            color: #4b5563;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            scroll-snap-align: start;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        .story-category.selected {
            background-color: #6366f1;
            color: white;
            border-color: #6366f1;
        }
        .story-container {
            background-color: white;
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        }
        .story-title {
            font-size: 22px;
            font-weight: bold;
            color: #1f2937;
            margin-bottom: 10px;
        }
        .story-meta {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
            color: #6b7280;
            font-size: 14px;
        }
        .story-type {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        .story-type-icon {
            margin-right: 5px;
            color: #6366f1;
        }
        .story-difficulty {
            display: flex;
            align-items: center;
        }
        .story-difficulty-icon {
            margin-right: 5px;
            color: #6366f1;
        }
        .story-image {
            width: 100%;
            height: 180px;
            border-radius: 12px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 40px;
        }
        .story-content {
            color: #4b5563;
            line-height: 1.8;
            font-size: 16px;
            margin-bottom: 25px;
        }
        .highlighted {
            color: #6366f1;
            font-weight: 600;
            text-decoration: underline;
            cursor: pointer;
        }
        .word-tooltip {
            background-color: #f3f4f6;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 25px;
        }
        .tooltip-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }
        .tooltip-title {
            font-weight: 600;
            color: #374151;
            display: flex;
            align-items: center;
        }
        .tooltip-icon {
            color: #6366f1;
            margin-right: 8px;
        }
        .tooltip-word {
            font-size: 18px;
            font-weight: bold;
            color: #1f2937;
            margin-bottom: 5px;
        }
        .tooltip-phonetic {
            color: #6b7280;
            font-size: 14px;
            margin-bottom: 10px;
        }
        .tooltip-meaning {
            color: #4b5563;
            line-height: 1.5;
        }
        .story-task {
            background-color: #f3f4f6;
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 25px;
        }
        .task-header {
            font-weight: 600;
            color: #374151;
            margin-bottom: 10px;
        }
        .task-question {
            color: #4b5563;
            margin-bottom: 15px;
            line-height: 1.5;
        }
        .task-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }
        .task-option {
            background-color: white;
            border-radius: 8px;
            padding: 12px;
            text-align: center;
            color: #4b5563;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid #e5e7eb;
        }
        .task-option:active {
            background-color: #6366f1;
            color: white;
        }
        .story-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 30px;
        }
        .action-btn {
            display: flex;
            align-items: center;
            color: #6b7280;
            font-size: 14px;
            background-color: #f3f4f6;
            padding: 10px 15px;
            border-radius: 8px;
        }
        .action-icon {
            margin-right: 8px;
        }
        .next-btn {
            background: linear-gradient(90deg, #4f46e5, #7c3aed);
            color: white;
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 600;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <div class="nav-bar">
            <span class="font-semibold">AI故事学习</span>
            <i class="fas fa-ellipsis-h text-gray-600"></i>
        </div>
        
        <div class="content">
            <div class="story-selection">
                <div class="story-header">选择故事类型</div>
                
                <div class="story-categories">
                    <div class="story-category" onclick="selectCategory(this)">全部</div>
                    <div class="story-category selected" onclick="selectCategory(this)">侦探</div>
                    <div class="story-category" onclick="selectCategory(this)">奇幻</div>
                    <div class="story-category" onclick="selectCategory(this)">科幻</div>
                    <div class="story-category" onclick="selectCategory(this)">历史</div>
                    <div class="story-category" onclick="selectCategory(this)">生活</div>
                </div>
            </div>
            
            <div class="story-container">
                <div class="story-title">神秘的博物馆盗窃案</div>
                
                <div class="story-meta">
                    <div class="story-type">
                        <i class="fas fa-search story-type-icon"></i>
                        侦探故事
                    </div>
                    
                    <div class="story-difficulty">
                        <i class="fas fa-star story-difficulty-icon"></i>
                        中级
                    </div>
                </div>
                
                <div class="story-image">
                    <i class="fas fa-museum"></i>
                </div>
                
                <div class="word-tooltip">
                    <div class="tooltip-header">
                        <div class="tooltip-title">
                            <i class="fas fa-lightbulb tooltip-icon"></i>
                            本故事包含的目标单词
                        </div>
                    </div>
                    
                    <div class="tooltip-word">scrutinize</div>
                    <div class="tooltip-phonetic">/ˈskruːtənaɪz/</div>
                    <div class="tooltip-meaning">
                        <strong>动词</strong>: 仔细检查；细看；审视
                    </div>
                </div>
                
                <div class="story-content">
                    The famous detective arrived at the museum after receiving a call about a stolen artifact. As he entered the grand hall, he began to <span class="highlighted">scrutinize</span> every detail around him. Nothing escaped his trained eye.
                    <br><br>
                    "When did you notice the artifact was missing?" he asked the museum director.
                    <br><br>
                    "This morning when we opened. The security system didn't trigger any alarms during the night," replied the nervous director.
                    <br><br>
                    The detective continued to <span class="highlighted">scrutinize</span> the empty display case, looking for any clues that might reveal how the thief had managed to bypass the security system.
                </div>
                
                <div class="story-task">
                    <div class="task-header">互动任务</div>
                    
                    <div class="task-question">
                        根据故事内容，"scrutinize"的最佳含义是什么？
                    </div>
                    
                    <div class="task-options">
                        <div class="task-option">快速浏览</div>
                        <div class="task-option">仔细检查</div>
                        <div class="task-option">随意查看</div>
                        <div class="task-option">忽略细节</div>
                    </div>
                </div>
                
                <div class="story-task">
                    <div class="task-header">填空练习</div>
                    
                    <div class="task-question">
                        The scientist needed to ________ the experimental results before publishing the research paper.
                    </div>
                    
                    <input type="text" class="w-full p-3 border border-gray-300 rounded-lg mt-2" placeholder="输入答案">
                </div>
                
                <div class="story-actions">
                    <div class="action-btn">
                        <i class="fas fa-volume-up action-icon"></i>
                        朗读故事
                    </div>
                    
                    <button class="next-btn">
                        下一个故事
                    </button>
                </div>
            </div>
        </div>
        
        <div class="tab-bar">
            <div class="tab-item" onclick="window.location.href='nft-buddy.html'">
                <i class="fas fa-dragon tab-icon"></i>
                <span>伙伴</span>
            </div>
            
            <div class="tab-item" onclick="window.location.href='word-learning.html'">
                <i class="fas fa-book tab-icon"></i>
                <span>学习</span>
            </div>
            
            <div class="tab-item" onclick="window.location.href='ai-tutor.html'">
                <i class="fas fa-robot tab-icon"></i>
                <span>AI导师</span>
            </div>
            
            <div class="tab-item active">
                <i class="fas fa-book-open tab-icon"></i>
                <span>故事</span>
            </div>
            
            <div class="tab-item" onclick="window.location.href='learning-report.html'">
                <i class="fas fa-chart-line tab-icon"></i>
                <span>报告</span>
            </div>
        </div>
    </div>
    
    <script>
        function selectCategory(element) {
            // 移除所有story-category的selected类
            document.querySelectorAll('.story-category').forEach(category => {
                category.classList.remove('selected');
            });
            
            // 为当前点击的元素添加selected类
            element.classList.add('selected');
        }
    </script>
</body>
</html>